<?php

class Application_Model_DbTable_SlideFlash extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_slide_flash';
    public function addNew($data){
        $this->insert($data);
    }
    
    public function getSlideFlashByShopId($sid){
        $res=$this->fetchAll("shop_id='".$sid."'");
        return $res->toArray();
    }
    
    public function getSlideFlashByShowLevel($level){
        $res=$this->fetchAll("show_level='".$level."'");
        return $res->toArray();
    }


}

